<script type="text/javascript" src="${base}/scripts/wlgl/xsps_print.js"></script>

<div id="xsps_tabs" class="easyui-tabs" detail="true" data-options="fit:true,border:false">
<input id= "xsps_id" name="xsps.id" type="hidden" value="${(xsps.id)!''}"/>
<input id ="xsps_xsd_id" name="xsps.xsd.id" type="hidden" value="${(xsd.id)!''}"/>
<div title="销售信息">
    <table style="width: 100%" class="tb tab-t t-bor">
        <col width="70px"/>
        <col width=""/>
        <col width="70px"/>
        <col width=""/>
        <col width="70px"/>
        <col width=""/>
        <tr>
            <th style="color:#f45212;">
                销售单号：
            </th>
            <td>
            ${(xsd.xsdh)!}
            </td>
            <th>路&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;径：</th>
            <td colspan="3">
            <#if xsd?? && xsd.lj??>
                <span class="ljtip">${(xsd.lj.mc)!}</span>
            </#if>
            </td>
            <input id="xsps_xsd_detail_ljtip" value="${(xsd.lj.id)!}" type="hidden"/>
        </tr>
        <tr>
            <th>销售合同：</th>
            <td>
                <a href="javascript:void(0)" onclick="xspsViewXsdglXshtDetail('${(xsd.xsht.id)!}')">
                ${(xsd.xsht.htbm)!}
                </a>
            </td>
            <th>销售类型：</th>
            <td>
            <#if xsd?? && xsd.xslx?? && xsd.xslx=="htxs" >合同销售<#else>
                <#if xsd?? && xsd.xslx?? && xsd.xslx=="kcls" >库存零售<#elseif xsd?? && xsd.xslx?? && xsd.xslx=="zddh" >直达到货<#else>保供销售
                </#if>
            </#if>
            </td>

            <th>客&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;户：</th>
            <td>
            ${(xsd.kh.qc)!}
            </td>
        </tr>
        <tr>
            <th>工&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;程：</th>
            <td>
            ${(xsd.gc.mc)!}
            </td>
            <th>提货仓库：</th>
            <td>
            ${(xsd.thck.mc)!}
            </td>
            <th>开单日期：</th>
            <td>
            ${(xsd.sxsj?date)!}
            </td>
        </tr>
        <tr>
            <th>计划发货：</th>
            <td>
            ${(xsd.fhsj?date)!}
            </td>
            <th>税&nbsp;率(%)：</th>
            <td colspan="3">
            ${(xsd.sl?string("0.0000"))!}
            </td>
        </tr>
        <tr>
            <th>发运责任：</th>
            <td>
            ${(xsd.fyzr.z)!}
            </td>
            <th>代收费用：</th>
            <td>
            ${(xsd.dsyfje?string(",##0.0000"))!}
            </td>
            <th>提&nbsp;货&nbsp;&nbsp;人：</th>
            <td>
            ${(xsd.thr)!}
            </td>
        </tr>
        <tr>
            <th>交货时间：</th>
            <td>
            ${(xsd.jhsj?date)!}
            </td>
            <th>送货地址：</th>
            <td colspan="3">
            ${(xsd.jhdz)!}
            </td>
        </tr>
        <tr>
            <th>收&nbsp;货&nbsp;&nbsp;人：</th>
            <td>
            ${(xsd.shry)!}
            </td>
            <th>联系电话：</th>
            <td>
            ${(xsd.shrdh)!}
            </td>
            <th>交货要求：</th>
            <td>
            ${(xsd.jhyq)!}
            </td>
        </tr>
    <#if xsd?? && xsd.xslx?? && xsd.xslx=="kcls" >
        <tr>
            <th>已&nbsp;审&nbsp;核：</th>
            <td>
                <#if xsd.cwsh??&&xsd.cwsh>是<#else>否</#if>
            </td>
            <th>审核时间：</th>
            <td>
            ${(xsd.shsj?date)!}
            </td>
            <th>审&nbsp;核&nbsp;&nbsp;人：</th>
            <td>
            ${(xsd.shr.xm)!}
            </td>
        </tr>
    </#if>
    <#if xsd?? && xsd.xslx?? && xsd.xslx!="zddh" >
        <tr>
            <th>已&nbsp;出&nbsp;库：</th>
            <td>
                <#if xsd??&&xsd.yck??&&xsd.yck>是<#else>否</#if>
            </td>
            <th>出库时间：</th>
            <td>
            ${(xsd.cksj?date)!}
            </td>
            <th>出&nbsp;库&nbsp;&nbsp;人：</th>
            <td>
            ${(xsd.ckr.xm)!}
            </td>
        </tr>
    </#if>
    <#if  xsd?? && xsd.xslx?? && xsd.xslx="zddh">
        <th>采购单号:</th>
        <td>${(cgd.cgdh)!}</td>
        <th>采购合同：</th>
        <td>
        ${(cgd.cght.htbm)!}
        </td>
        <th>供&nbsp;&nbsp;应&nbsp;&nbsp;商：</th>
        <td>
        ${(cgd.gys.jc)!}
        </td>
    </#if>
        <tr>
            <th>申报公司：</th>
            <td>
            ${(xsd.sbgs.jc)!}
            </td>
            <th>申报部门：</th>
            <td>
            ${(xsd.sbbm.qc)!}
            </td>
            <th>申&nbsp;报&nbsp;&nbsp;人：</th>
            <td>
            ${(xsd.sbr.xm)!}
            </td>
        </tr>
        <tr>
            <th>销售公司：</th>
            <td>
            ${(xsd.xsgs.jc)!}
            </td>
            <th>协办公司：</th>
            <td>
            ${(xsd.xbgs.qc)!}
            </td>
            <th>协办部门：</th>
            <td>
            ${(xsd.xbbm.qc)!}
            </td>
        </tr>
        <tr>
            <th>备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注：</th>
            <td colspan="5">
            ${(xsd.bz)!}
            </td>
        </tr>
        <tr>
            <th>制&nbsp;单&nbsp;&nbsp;人：</th>
            <td>${(xsd.createUser.xm)!}</td>
            <th>制单时间：</th>
            <td>${(xsd.dateCreated?datetime)!}</td>
        </tr>
    </table>
</div>
<div title="销售明细">
    <table id="xsps_xsd_xsdmx_table">
    </table>
</div>
<div title="配送文本">
    <div id="-toolbar">
        <div class="PTools">
            <ul class="niu">
                <li><span class="xuan">选择打印机：</span>
                    <select class="ze" name="" style="">
                        <option>——默认——</option>
                    </select>
                </li>
                <li><a class="she" href="javascript:void(0);" onclick="checkIsInstall()">检查插件</a></li>
                <li><a class="watch" href="javascript:void(0);" onclick="xsdpsyPrintPreview()">打印</a></li>
            </ul>
        </div>
        <table>
            <input type="hidden" id="xsps_yfsl_1" value="on"/>
            <input type="hidden" id="xsps_sfsl_1" value="on"/>
            <input type="hidden" id="xsps_kcdj_1" value="on"/>
            <input type="hidden" id="xsps_kcje_1" value="on"/>
            <input type="hidden" id="xsps_csdj_1" value="on"/>
            <input type="hidden" id="xsps_csje_1" value="on"/>
            <tr>
                <td>
                    应发数量：<input type="checkbox" id="xsps_yfsl" checked="true"/>&nbsp;&nbsp;&nbsp;
                    实发数量：<input type="checkbox" id="xsps_sfsl" checked="true"/>&nbsp;&nbsp;&nbsp;
                    库存单价：<input type="checkbox" id="xsps_kcdj" checked="true"/>&nbsp;&nbsp;&nbsp;
                    库存总金额：<input type="checkbox" id="xsps_kcje" checked="true"/>&nbsp;&nbsp;&nbsp;
                    出售单价：<input type="checkbox" id="xsps_csdj" checked="true"/>&nbsp;&nbsp;&nbsp;
                    出售总金额：<input type="checkbox" id="xsps_csje" checked="true"/>
                </td>
            </tr>
        </table>
        <div>
            <object id="LODOP_OB_XSPS" classid="clsid:2105C259-1E0C-4534-8141-A753534CB4CA" width=0 height=0>
                <embed id="LODOP_EM_XSPS" type="application/x-print-lodop" width=0 height=0
                       pluginspage="install_lodop32.exe"></embed>
            </object>
            <div id="xsps_print_id" class="textcon">
                <table id="xsps_print_table" class="tb" style="width: 100%;font-size:13px;">
                    <tbody>
                    <colgroup>
                        <col width="10%;"/>
                        <col width="27%"/>
                        <col width="15%;"/>
                        <col width="20%"/>
                        <col width="12%;"/>
                        <col width="23%"/>
                    </colgroup>
                    <tbody>
                    <tr>
                        <th>供应单位:</th>
                        <td><input id="xsddetail_xsgs" class="input-tian" readonly="readonly"
                                   value="${(xsps.xsd.sbgs.qc)!}"/></td>
                        <td rowspan="3" colspan="2" style="text-align: center;font-size: 18px">
                            <span id="xsddy_shd" style="font-size: 20px;">${(xsps.xsd.xsgs.qc)!}物资出库单(送货)</span>
                        </td>
                        <th>售料单编号:</th>
                        <td><input id="xsddetail_xsdh" class="input-tian" readonly="readonly"
                                   value="${(xsps.xsd.xsdh)!}"/></td>
                    </tr>
                    <tr>
                        <th>购料单位:</th>
                        <td><input id="xsddetail_kh" class="input-tian" readonly="readonly"
                                   value="${(xsps.xsd.kh.qc)!}"/>
                        </td>
                        <th>制单日期:</th>
                        <td><input id="xsddetail_sxsj" class="input-tian" readonly="readonly"
                                   value="<#if xsps??>${(xsps.dateCreated?date)!}</#if>"/></td>
                    </tr>
                    <tr>
                        <th>提货仓库:</th>
                        <td><input id="xsddetail_thck" class="input-tian" readonly="readonly"
                                   value="${(xsps.xsd.thck.mc)!}"/></td>
                        <th>收货日期:</th>
                        <td><input id="xsddetail_jhrq" class="input-tian" readonly="readonly"
                                   value="<#if xsd??>${(xsps.xsd.fhsj?date)!}</#if>"/></td>
                    </tr>
                    </tbody>
                </table>
            </div>

            <div id="xsps_content_id" class="textcon"></div>


            <div id="xsps_detail_id" class="textcon">
                <table class="tb" style="width: 100%;font-size:13px;">
                    <colgroup>
                        <col width="13%;"/>
                        <col width="20%"/>
                        <col width="13%;"/>
                        <col width="24%"/>
                        <col width="13%;"/>
                        <col width="25%"/>
                    </colgroup>
                    <tbody>
                    <tr>
                        <th>运输单位：</th>
                        <td><input class="input-tian" value="${(xsps.wls.qc)!''}"/></td>
                        <th>运输车号：</th>
                        <td><input class="input-tian" value="${(xsps.shch)!''}"/></td>
                        <th>驾驶员/电话：</th>
                        <td><input class="input-tian" value="${(xsps.jsy)!''}/${(xsps.lxdh)!''}"/></td>
                    </tr>
                    <tr>
                        <th>交货日期：</th>
                        <td><input class="input-tian" value="${(xsps.xsd.jhsj)!''}"/></td>
                        <th>送货地址：</th>
                        <td><input class="input-tian" value="${(xsps.xsd.jhdz)!''}"/></td>
                        <th>收货人/电话：</th>
                        <td><input class="input-tian"  value="${(xsps.xsd.shry)!''}/${(xsps.xsd.shrdh)!''}"/></td>
                    </tr>
                    <tr>
                        <th style="font-size: 12px;">备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注:</th>
                        <td colspan="5">
                            <input id="xsddy_bz" class="input-tian" readonly="readonly"
                                   value="${(xsps.bz)!}"/>
                        </td>
                    </tr>
                    <tr>
                        <th style="font-size: 12px;">收&nbsp;货&nbsp;人:</th>
                        <td>
                            <input id="xsddy_thr" class="input-tian" readonly="readonly" value="${(xsps.xsd.thr)!}"/>
                        </td>
                        <th style="font-size: 12px;">发&nbsp;料&nbsp;员:</th>
                        <td>
                            <input id="xsddy_fly" class="input-tian" readonly="readonly" value="${(xsps.xsd.ckr.xm)!}"/>
                        </td>
                        <th style="font-size: 12px;">制&nbsp;单&nbsp;人:</th>
                        <td>
                            <input id="xsddy_zdr" class="input-tian" readonly="readonly"
                                   value="${(xsps.xsd.createUser.xm)!}"/>
                        </td>
                    </tr>
                    <tr>
                        <th></th>
                        <td colspan="1"></td>
                        <th></th>
                        <td>${(currentTime?string('yyyy-MM-dd HH:mm:ss'))!}</td>
                    </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>
</div>

